From: Alexandru Ardelean Date: Tue, 6 Jan 2015 08:48:52 +0000 (+0200) Subject: python: trim all whitespaces for the operator in the filespec X-Git-Url: http://git.openwrt.org/%22https:/collectd.org/%22http:/www.crowdsec.net//%22https%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22https%22?a=commitdiff_plain;h=9b94e3cb6eab07e6ba44ca74ea5ffc19f39d0bd7;p=feed%2Fpackages.git python: trim all whitespaces for the operator in the filespec That would allow for files (in filespecs) to be indented. As it is now, the files need to be added at the begginning of the line. Signed-off-by: Alexandru Ardelean --- diff --git a/lang/python/files/python-package.mk b/lang/python/files/python-package.mk index 9a999d4f06..71d500d1d7 100644 --- a/lang/python/files/python-package.mk +++ b/lang/python/files/python-package.mk @@ -45,6 +45,7 @@ define PyPackage @echo "$$$$$$$$$$(call shvar,PyPackage/$(1)/filespec)" | ( \ IFS='|'; \ while read fop fspec fperm; do \ + fop=`echo "$$$$$$$$fop" | tr -d ' \t\n'`; \ if [ "$$$$$$$$fop" = "+" ]; then \ if [ ! -e "$(PKG_INSTALL_DIR)$$$$$$$$fspec" ]; then \ echo "File not found '$(PKG_INSTALL_DIR)$$$$$$$$fspec'"; \